//
//  AboutMeManage.m
//  ArtCircle
//
//  Created by sunbin on 2017/5/22.
//  Copyright © 2017年 HuaYue. All rights reserved.
//

#import "AboutMeManage.h"

@implementation AboutMeManage


+ (void)saveWithTy:(UserChangeType)userChangeType content:(NSString *)content success:(void (^)(NSDictionary * results, NSString* successMsg))success failed:(void(^)(WrapperEnumError errorty ,NSString *msg))failed{


  NSDictionary *params = @[
                         @{@"headUrl" :content},
                         @{@"nickname":content},
                         @{@"sex":@((NSInteger)[content integerValue])},
                         @{@"id" :content},
                         @{@"constellation"    :content},
                         @{@"permanentRegion"  :content},
                         @{@"personalSignature":content},
                         @{@"label":content},
                         @{@"job"  :content}][userChangeType];
    

    [ZL_NetworkHelper POST:@"http://52.80.21.157:8888/server/user/save" parameters:params success:^(id responseObject) {
        
        [responseObject server_Getcodecheck]?
        success([responseObject objectForKey:@"data"] ,[responseObject objectForKey:@"msg"]):
        failed(Error ,[responseObject objectForKey:@"msg"]);
        
        
    } failure:^(NSError *error) {
        failed(Failure ,error.localizedDescription);

    }];


}



@end
